<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Consent.aspx.cs" Inherits="Consent" MasterPageFile="slp.master" %>
<asp:Content ID="title" runat="server" ContentPlaceHolderID="ContentPlaceHolderTitle">
    
    <script src="jquery-1.2.6.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function() {
            var btnID = '#<%= btGoToSurvey.ClientID %>';
            var yesRdID = '<%= rbyes.ClientID %>';
            var noRdID = '<%= rbNo.ClientID %>';
            var yesRd = $('#' + yesRdID);
            var noRd = $('#' + noRdID);
            yesRd.attr('checked', false);
            noRd.attr('checked', false);
            $(btnID).attr("disabled", true);
            var changed = function() {
                if (this.id == yesRdID) {
                    $(btnID).removeAttr("disabled");
                }
                else {
                    $(btnID).attr("disabled", true);
                }
            };
            yesRd.click(changed);
            noRd.click(changed);
        });
    </script>
</asp:Content>

<asp:Content ID="consentHeader" runat="server" ContentPlaceHolderID="title">
    Consent
</asp:Content>

<asp:Content ID="consentBody" runat="server" ContentPlaceHolderID="contentBody">
    <p>
                I understand that if I consent to participate in this project I will be asked to
                provide some demographic information and information about my values and life principles.
                I will also be asked some questions about my life satisfaction. I further understand
                that this task will take approximately 20 minutes to complete.</p>
            <p>
                I have been advised that to ensure confidentiality my responses will be de-identified
                will be kept confidential.</p>
            <p>
                I understand that my participation in this research is voluntary, I am free to refuse
                to participate, and I am free to withdraw from the research at any time. My refusal
                to participate, or withdrawal of consent, will not affect my relationship with my
                school or with the University of Wollongong.</p>
            <p>
                If I have any enquiries about the research, I can contact Dr Joseph Ciarrochi on
                <em>42214488</em>. Further, if I have any concerns or complaints regarding the manner in
                which the research is, or has been, conducted, I can contact the Complaints Officer,
                Human Research Ethics Committee, Office of Research, University of Wollongong on
                <em>42214457</em>.</p>
            <p id="contains_radio">
                Do you consent to participate in this study?</p>
                <p style="text-align: center">
                <asp:RadioButton ID="rbyes" runat="server" Text="Yes, I consent" Checked="false" GroupName="g1"/>
                <asp:RadioButton ID="rbNo" runat="server" Text="No, I do not consent" Checked="false" GroupName="g1"/>
            </p>
</asp:Content>
<asp:Content ID="consentAction" runat="server" ContentPlaceHolderID="actions">
    <asp:Button ID="btGoToSurvey" Text="Go to Survey" OnClick="btGoToSurvey_Click" runat="server" ForeColor="Teal"/>
</asp:Content>